﻿@model RRHH.RRHH_Service.BEContrato


@{
    ViewBag.Title = "REGISTRO DE CONTRATO";
    Layout = "/Views/Shared/_Layout.cshtml";
}



<h2>REGISTRO DE CONTRATO</h2>

 <script language="javascript" type="text/javascript" src="../../Scripts/jquery-1.7.2.js"></script>
  <script language="javascript" type="text/javascript" src="../../Scripts/jquery.validate.js"></script>
   <script language="javascript" type="text/javascript" src="../../Scripts/Script.js"></script>



@using (Html.BeginForm("Create", "ContratoEF", FormMethod.Post, new { id = "contratoForm" }))
{



    using (var t = Html.JQueryUI().BeginTabs())
    {
        t.Tab("Datos Contrato", "tab1");

        using (t.BeginPanel())
        {
            
            
        <fieldset>
        <legend>CONTRATO</legend>

         <p>
      
            <button data-jqui-type="button" type="submit" value="Create"  >Guardar</button>
        </p>

        
         <div class="editor-field">
         <table>
         <tr> <b>&nbsp;PERSONAL:&nbsp;</b> </tr>
         <tr>@ViewBag.Datos &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tr>
         <tr><b>&nbsp;CODIGO EMPLEADO :&nbsp;</b> </tr>
         <tr>@ViewBag.CODEMPLEADO </tr>
         
         </table>
                 
        </div>
       
        <div class="editor-field">
        <table>
        <tr> <b>&nbsp;Fecha de Inicio :&nbsp;</b> </tr>
        <tr>  @Html.JQueryUI().DatepickerFor(model => model.FECHAINICIO)</tr>

        <tr> <b>&nbsp;Fecha de Fin :&nbsp;</b> </tr>
        <tr>@Html.JQueryUI().DatepickerFor(model => model.FECHAFIN)</tr>
        </table>
        </div>         
     

    

        <div class="editor-field">
        <p>SALARIO  </p>
            @Html.EditorFor(model => model.SALARIORECIBO)
          
        </div>

    
         <div class="editor-field">
           
            @*
            PRIMERO FORMA DE HACER UN COMBOX BOX
             @Html.DropDownList("dsCargo", string.Empty)    *@

             @* SEGUNDA FORMA DE HACR UN COMBO BOX    *@
             <p>CARGO  </p>
             @Html.DropDownList("dsCargo", (SelectList)ViewData["dsCargo"], "------- Seleccione -------")       
       
        </div>

        <div class="editor-field">
        <p>CONTRARO  </p>
             @Html.DropDownList("dsEstadoContrato", (SelectList)ViewData["dsEstadoContrato"], "------- Seleccione -------") 
        </div>

      
        <div class="editor-field">
        <p>TIPO CONTRATO  </p>
             @Html.DropDownList("dsTipoContrato", (SelectList)ViewData["dsTipoContrato"], "------- Seleccione -------")  
        </div>

        <p>
      
            <button data-jqui-type="button" type="submit" value="Create"  >Guardar</button>
        </p>
       
    </fieldset>
    

<div>
         
    @Html.JQueryUI().ActionButton("ATRAS", "ListadoContratos")
   
</div>
        }
    }

} 

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

 